package com.fy.module.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author jiang
 * @since 2023-03-21
 */
@TableName("sys_role")
@ApiModel(value = "Role对象", description = "")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("角色编码")
    @TableId(type = IdType.ASSIGN_ID)
    private String roleCode;

    @ApiModelProperty("角色名称例如：（ROLE_XX）")
    private String roleName;

    @ApiModelProperty("角色描述(角色的中文名)例如：文案管理员")
    private String roleDesc;

    @ApiModelProperty("角色排序")
    private Integer roleOrder;

    @ApiModelProperty("角色类型 1:业务角色;2:管理角色;")
    private Integer roleType;

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }
    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
    public String getRoleDesc() {
        return roleDesc;
    }

    public void setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc;
    }
    public Integer getRoleOrder() {
        return roleOrder;
    }

    public void setRoleOrder(Integer roleOrder) {
        this.roleOrder = roleOrder;
    }
    public Integer getRoleType() {
        return roleType;
    }

    public void setRoleType(Integer roleType) {
        this.roleType = roleType;
    }

    @Override
    public String toString() {
        return "Role{" +
            "roleCode=" + roleCode +
            ", roleName=" + roleName +
            ", roleDesc=" + roleDesc +
            ", roleOrder=" + roleOrder +
            ", roleType=" + roleType +
        "}";
    }
}
